/*
 * @Author: gmh
 * @Date: 2024-02-01 14:37:41
 * @Description: 分类数据接口
 */
import type { CategoryTopItem } from '@/types/category'
import { http } from '@/utils/http'

/**
 * @description: 查询分类数据
 * @return {*}
 */
export const getCategoryTopAPI = () => {
  return http<CategoryTopItem[]>({
    method: 'GET',
    url: '/category/top',
  })
}
